package com.flyiu.data.consistency.service;

public interface DistributeService {

	/**
		 * 开启分布式事务
		 * 
		 * @param name
		 * @param businessId
		 */
	//	@Transactional(value = "consistencyTransactionManager",propagation=Propagation.REQUIRES_NEW)
	void start(String name, String businessId);

	void preCommit();

	/**
	 * 提交事务
	 */
	void commit();

	void preRollback();

	/**
	 * 回退事务
	 */
	void rollback();

}